<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <script>
    // console.log(NaN,typeof NaN);
    // console.log(0/0,6/0);
    // console.log(Math.sqrt(-1));// sqrt 开方
    // console.log('abc'-2);
    // console.log(parseInt("abc"));
    // console.log(undefined+5);
    
    if(parseInt('hello')===NaN){
      console.log('不是一个数字');
    }
    if(Number.isNaN(parseInt('hello'))){
      console.log('我判断正确');
      
    }
    
  </script>
</body>
</html>